package com.hyh.ad.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import lombok.Data;


/*
 * 系统角色实体类
 */

@Data
public class SysRole extends BaseEntity {

    /*
     * 主键id
     */
    @TableId(type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /*
     * 角色名称
     */
    private String roleName;

    /*
     * 角色标识
     */
    private String roleKey;

    /*
     * 角色状态
     */
    private String status;

}
